<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<sec:authentication property="principal" var="currentPrincipal" scope="page"/>
  
<div id="anchor-supplier-certificate" class="block-heading">
  <h5>基本业务信息</h5>
  <c:if test="${supplierMenuType != 'sub'}">
    <a href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate?panel=true&" data-target="#edit" data-toggle="modal" title="Edit"
       class="pull-right" style="font-size: 12px; padding-top: 20px;">编辑</a>
  </c:if>
</div>

<div class="form-horizontal ms-form form-personal-info form-supplier-info">

  <div class="form-group  ms-form-group">
      <label class="control-label col-xs-3">16&nbsp;<span class="color-red">*</span>管理人员(人)：</label>
      <div class="col-xs-3 pull-left">
          <p class="form-control-static">${empty supplierCertificate.managerNum ? '无' : supplierCertificate.managerNum}</p>
      </div>
      <label class="control-label col-xs-3">17&nbsp;<span class="color-red">*</span>具体作业人员(人)：</label>
      <div class="col-xs-3 pull-left">
          <p class="form-control-static">${empty supplierCertificate.operatorNum ? '无' : supplierCertificate.operatorNum}</p>
      </div>
  </div>

  <div class="form-group ms-form-group">
      <label class="control-label col-xs-3 ">18&nbsp;<span class="color-red">*</span>公司规模(年预计销售收入)：</label>
      <div class="col-xs-3 pull-left">
        <p class="form-control-static">${empty supplierCertificate.companySizeString ? '无' : supplierCertificate.companySizeString}</p>
      </div>
  </div>

  <div class="form-group ms-form-group">
    <label class="control-label col-xs-3 ">19&nbsp;<span class="color-red">*</span>固定成本(元/板/年)：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">${empty supplierCertificate.constantCost ? '无' : supplierCertificate.constantCost}</p>
    </div>
    <label class="control-label col-xs-3">20&nbsp;<span class="color-red">*</span>变动成本(元/板/公里)：</label>
    <div class="col-xs-3 pull-left">
      <p class="form-control-static">${empty supplierCertificate.variableCost ? '无' : supplierCertificate.variableCost}</p>
    </div>
  </div>

  <div class="form-group  ms-form-group">
      <label class="control-label col-xs-3">21&nbsp;<span class="color-red">*</span>公司简介：</label>
      <div class="col-xs-3 pull-left upload-cover" style="padding-right: 0px;">
          <p class="form-control-static">
            <c:choose>
              <c:when test="${empty supplierCertificate.briefCert and supplierMenuType == 'sub'}">暂未上传</c:when>
              <c:when test="${not empty supplierCertificate.briefCert and supplierMenuType == 'sub'}">
                 <a href="${supplierCertificate.briefCert}" download="${supplier.name}公司简介">公司简介</a>
              </c:when>
              <c:when test="${empty supplierCertificate.briefCert and supplierMenuType != 'sub'}">
                暂未上传，点击按钮上传
                &nbsp;&nbsp;<a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=briefCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">上传</a>
              </c:when>
              <c:otherwise>
                <a href="${supplierCertificate.briefCert}" download="${supplier.name}公司简介">公司简介</a>
                &nbsp;&nbsp;<a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=briefCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">重新上传</a>
              </c:otherwise>
            </c:choose>
            &nbsp;&nbsp;<a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.resource}/template/supplier/anji-brief-cert.doc" download="安吉物流整车物流供应商简介.doc">模板</a>
          </p>
      </div>
      <label class="control-label col-xs-3">22&nbsp;房产证扫描件：</label>
      <div class="col-xs-3 pull-left">
          <p class="form-control-static">
            <c:choose>
              <c:when test="${empty supplierCertificate.propertyCert and supplierMenuType == 'sub'}">暂未上传</c:when>
              <c:when test="${not empty supplierCertificate.propertyCert and supplierMenuType == 'sub'}">
                 <a href="${supplierCertificate.propertyCert}" download="${supplier.name}房产证扫描件">房产证扫描件</a>
              </c:when>
              <c:when test="${empty supplierCertificate.propertyCert and supplierMenuType != 'sub'}">
                暂未上传，点击按钮上传
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=propertyCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">上传</a>
              </c:when>
              <c:otherwise>
                <a href="${supplierCertificate.propertyCert}" download="${supplier.name}房产证扫描件">房产证扫描件</a>
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=propertyCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">重新上传</a>
              </c:otherwise>
            </c:choose>
          </p>
      </div>
  </div>
          
  <div class="form-group  ms-form-group">
      <label class="control-label col-xs-3">23.1&nbsp;申请方近三年的审计报告：</label>
      <div class="col-xs-3 pull-left upload-cover">
          <p class="form-control-static">
            <c:choose>
              <c:when test="${empty supplierCertificate.auditCert and supplierMenuType == 'sub'}">暂未上传</c:when>
              <c:when test="${not empty supplierCertificate.auditCert and supplierMenuType == 'sub'}">
                 <a href="${supplierCertificate.auditCert}" download="${supplier.name}申请方近三年的审计报告">申请方近三年的审计报告</a>
              </c:when>
              <c:when test="${empty supplierCertificate.auditCert and supplierMenuType != 'sub'}">
                暂未上传，点击按钮上传
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=auditCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">上传</a>
              </c:when>
              <c:otherwise>
                <a href="${supplierCertificate.auditCert}" download="${supplier.name}申请方近三年的审计报告">申请方近三年的审计报告</a>
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=auditCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">重新上传</a>
              </c:otherwise>
            </c:choose>
          </p>
      </div>
      <label class="control-label col-xs-3">23.2&nbsp;申请方近三年的所得税表：</label>
      <div class="col-xs-3 pull-left">
          <p class="form-control-static">
            <c:choose>
              <c:when test="${empty supplierCertificate.taxCert and supplierMenuType == 'sub'}">暂未上传</c:when>
              <c:when test="${not empty supplierCertificate.taxCert and supplierMenuType == 'sub'}">
                 <a href="${supplierCertificate.taxCert}" download="${supplier.name}申请方近三年的所得税表">申请方近三年的所得税表</a>
              </c:when>
              <c:when test="${empty supplierCertificate.taxCert and supplierMenuType != 'sub'}">
                暂未上传，点击按钮上传
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=taxCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">上传</a>
              </c:when>
              <c:otherwise>
                <a href="${supplierCertificate.taxCert}" download="${supplier.name}申请方近三年的所得税表">申请方近三年的所得税表</a>
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=taxCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">重新上传</a>
              </c:otherwise>
            </c:choose>
          </p>
      </div>
  </div>
          
  <div class="form-group  ms-form-group">
      <label class="control-label col-xs-3">24&nbsp;银行资信等级证明：</label>
      <div class="col-xs-3 pull-left upload-cover">
          <p class="form-control-static">
            <c:choose>
              <c:when test="${empty supplierCertificate.financialCert and supplierMenuType == 'sub'}">暂未上传</c:when>
              <c:when test="${not empty supplierCertificate.financialCert and supplierMenuType == 'sub'}">
                 <a href="${supplierCertificate.financialCert}" downdload="${supplier.name}银行资信等级证明">银行资信等级证明</a>
              </c:when>
              <c:when test="${empty supplierCertificate.financialCert and supplierMenuType != 'sub'}">
                暂未上传，点击按钮上传
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=financialCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">上传</a>
              </c:when>
              <c:otherwise>
                <a href="${supplierCertificate.financialCert}" downdload="${supplier.name}银行资信等级证明">银行资信等级证明</a>
                <a class="btn ms-btn btn-primary" style="padding: 1px 5px;" href="${ctx.host}/suppliers/${supplier.id}/supplier-certificate/upload?type=financialCert&supplierMenuType=${param.supplierMenuType}" data-target="#upload" data-toggle="modal">重新上传</a>
              </c:otherwise>
            </c:choose>
          </p>
      </div>
  </div>
           
</div>
